//
//  ButtomView.h
//  TaTaBang
//
//  Created by 李禹 on 15/8/16.
//  Copyright (c) 2015年 hailong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    ButtomViewTypeLeft = 10000,
    ButtomViewTypeRight
}ButtomViewType;

@class ButtomView;
@protocol ButtomViewDelegate <NSObject>

@optional
- (void)buttomView:(ButtomView *)buttomView didSelectedButtomViewType:(ButtomViewType)type;

@end

@interface ButtomView : UIView

@property (nonatomic, weak) id<ButtomViewDelegate> delegate;

+ (instancetype)buttomViewWithLeftTitle:(NSString *)leftTitle rightTitle:(NSString *)rightTitle;

@property (nonatomic, copy) NSString *leftTitle;
@property (nonatomic, copy) NSString *rightTitle;

@end
